<!DOCTYPE html>
<html>
  <head>    
      <title>成员列表</title>
      <% include layout/lib.ejs %>
      <link rel="stylesheet" type="text/css" href="/css/memberIndex.css" />
  </head>
  <body>
    <div class="pageTitleBox">
      <% if(teamValue == 1){ %>
        黑翼团
      <% }else if(teamValue == 3){ %>
        安琪拉团
      <% } %>
       / 成员列表
    </div>
    <div class="memberCountBox">总人数：<%= memberData.length %> 人</div>
    <div class="memberIndexBox">
      <div class="memberItemBox">
        <% for(var i=0;i<memberData.length;i++){ %>
        <div class="memberItem">
          <div class="memberPhoto">
            <% if(memberData[i].m_photo===null || memberData[i].m_photo == ""){ %>
              <img src="/image/dkp_13.png" />
              <% }else{ %>
              <img src="<%- memberData[i].m_photo %>" />
              <% } %>
          </div>
          <div class="memberName">
            <% if(memberData[i].m_profession == 0){ %>
              <img src="/image/dkp_6.png" />
              <% }else if(memberData[i].m_profession == 1){ %>
              <img src="/image/dkp_7.png" />
              <% }else if(memberData[i].m_profession == 2){ %>
              <img src="/image/dkp_8.png" />
              <% }else if(memberData[i].m_profession == 3){ %>
              <img src="/image/dkp_9.png" />
              <% }else if(memberData[i].m_profession == 4){ %>
              <img src="/image/dkp_10.png" />
              <% }else if(memberData[i].m_profession == 5){ %>
              <img src="/image/dkp_11.png" />
              <% }else if(memberData[i].m_profession == 6){ %>
              <img src="/image/dkp_12.png" />
              <% }else if(memberData[i].m_profession == 7){ %>
              <img src="/image/dkp_16.png" />
              <% } %>
              <%- memberData[i].m_name %></div>
        </div>
        <% } %>
      </div>
    </div>
  </body>
</html>